package model

type AuthMqttRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
	ClientId string `json:"clientid"`
}

type AuthMqttResponse struct {
	Result string     `json:"result"` // "allow" | "deny" | "ignore"
	Acl    []*MqttAcl `json:"acl"`
}

type MqttAcl struct {
	Permission string `json:"permission"` // allow、deny
	Action     string `json:"action"`     // publish、subscribe、 all
	Topic      string `json:"topic"`      // 规则对应的主题，支持主题占位符
}
